import { http } from "@/utils/http";
import {ListResult, ObjectResult} from "@/types/apiTypes";

export function getList(params?: object): Promise<ListResult> {
  return http.request({
    url: "/download/getList",
    method: "get",
    params
  });
}

export function deleteFileApi(data?: object): Promise<ObjectResult> {
  return http.request({
    url: "/download/deleteFile",
    method: "delete",
    data
  });
}
